package cn.superchart.common.enums;


import lombok.Getter;
import lombok.Setter;

/**
 * @author liufei123
 */

public enum ExceptionEnum  {

	TOKEN_FORBIDDEN(403, "Token不合法或已过期"),

	UN_KNOW_DATABASE(70001, "不支持的数据库类型"),

	INSTALLED_SYS(70002, "系统已初始化完成"),

	NOT_EQ_PW(70003, "2次密码不一致"),

	HAS_ROW_SAME_FIELD(70004, "路由标识已存在"),

	CAN_NOT_DEL_SYS_ROLE(70005, "系统角色不可删除"),

	IS_NOT_FIELD(70007, "字段必填"),


	HAS_ROW_SAME_FLAG(70008, "权限标识已存在"),

	USER_DISABLE(403, "用户已经被禁用"),

	PK_CAN_NOT_BLANK(400, "主键不能为空"),

	HAS_USER_ACCOUNT(70004, "用户账户已存在"),

	AUTH_NOT_LEGAL(401, "权限不合法");

	@Setter @Getter
	private int code;

	@Setter @Getter
	private String msg;

	ExceptionEnum(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}
}
